package com.ruoyi.system.domain;

import java.math.BigDecimal;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 销售单对象 order
 * 
 * @author ruoyi
 * @date 2025-10-09
 */
public class Order extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键（自增） */
    private Long id;

    /** 销售单号（XS+日期+序号） */
    @Excel(name = "销售单号", readConverterExp = "X=S+日期+序号")
    private String orderNo;

    /** 关联客户表id（外键） */
    @Excel(name = "关联客户表id", readConverterExp = "外=键")
    private Long customerId;

    /** 发货仓库 */
    @Excel(name = "发货仓库")
    private String warehouse;

    /** 销售总金额（含折扣） */
    @Excel(name = "销售总金额", readConverterExp = "含=折扣")
    private BigDecimal totalAmount;

    /** 状态：1=待付款，2=已付款，3=已发货，4=完成 */
    @Excel(name = "状态：1=待付款，2=已付款，3=已发货，4=完成")
    private Long status;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }

    public void setOrderNo(String orderNo) 
    {
        this.orderNo = orderNo;
    }

    public String getOrderNo() 
    {
        return orderNo;
    }

    public void setCustomerId(Long customerId) 
    {
        this.customerId = customerId;
    }

    public Long getCustomerId() 
    {
        return customerId;
    }

    public void setWarehouse(String warehouse) 
    {
        this.warehouse = warehouse;
    }

    public String getWarehouse() 
    {
        return warehouse;
    }

    public void setTotalAmount(BigDecimal totalAmount) 
    {
        this.totalAmount = totalAmount;
    }

    public BigDecimal getTotalAmount() 
    {
        return totalAmount;
    }

    public void setStatus(Long status) 
    {
        this.status = status;
    }

    public Long getStatus() 
    {
        return status;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("orderNo", getOrderNo())
            .append("customerId", getCustomerId())
            .append("warehouse", getWarehouse())
            .append("totalAmount", getTotalAmount())
            .append("status", getStatus())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .toString();
    }
}
